package com.aolong.archives.core.sysmanage.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.aolong.archives.common.resource.DataDictionaryUtil;
import com.rock.platform.entity.BaseEntity;

@Entity
@Table(name="TSM_USER")
public class UserEntity extends BaseEntity {
	
	private static final long serialVersionUID = 1L;

	@Id
	private String userId;
	private String userName;
	private String userNameEn;
	private String userCode;
	private String loginName;
	private int type; 
	
	@Column(updatable = false)
	private String password;
	
	@Column(updatable = false)
	private int status = 1; 
	
	@Column(updatable = false)
	private String regDate;
	
    @Transient
	private String statusDesc;
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getRegDate() {
		return regDate;
	}
	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}
	public String getStatusDesc() {
		return DataDictionaryUtil.getInstance().getValue(this.getStatus(), "Status");
	}
	public String getUserNameEn() {
		return userNameEn;
	}
	public void setUserNameEn(String userNameEn) {
		this.userNameEn = userNameEn;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
}
